#include "index.h"

namespace sleek
{
    namespace mesh
    {
        index::index()
        {
            vertex[0] = vertex[1] = vertex[2] = 0;
        }
        index::index(core::u32 x, core::u32 y, core::u32 z)
        {
            vertex[0] = x; vertex[1] = y; vertex[2] = z;
        }
        void index::operator = (const core::u16 *other)
        {
            vertex[0] = other[0];
            vertex[1] = other[1];
            vertex[2] = other[2];
        }
        void index::operator = (const index other)
        {
            vertex[0] = other.vertex[0];
            vertex[1] = other.vertex[1];
            vertex[2] = other.vertex[2];
        }
    }
}
